home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / comm / misc / MiamiLog.readme < prev    next >
Encoding:
Text File  |  1998-03-08  |  2.3 KB  |  80 lines

  1. Short:    Nice&simple Miami phone log parser w/src
  2. Author:   thorgal@amiga.com.pl
  3. Uploader: thorgal@amiga.com.pl
  4. Type:     comm/misc
  5.  
  6. Some time ago I hacked this simple flex parser to calculate my phone-bill
  7. value from the logfile generated by Miami.  A few of my friends liked it
  8. and seem to use it frequently, so I decided to release it in the hope that
  9. there may be more persons preferring simplicity over baroqueness of other
  10. log-analyzers. As for the source, let's say it's under GPL.
  11.  
  12. Usage:
  13.  
  14. MiamiLog <Miami:phone.log
  15.  
  16. and the output looks like this:
  17.  
  18. ---------------------------------------------------------------------
  19.  
  20. day 01: #############
  21. day 02: ########
  22. day 03: #############################
  23. day 04: ###############
  24. day 05: ############
  25. day 06: ###################
  26. day 07: ############
  27. day 08: ########
  28. day 09: #############
  29. day 10: #######
  30. day 11: ###############################
  31. day 12: ###########
  32. day 13: ###
  33. day 14: #######
  34. day 15: ######################
  35. day 16: ###
  36. day 17: #######
  37. day 18: ####################
  38. day 19: ####
  39. day 20: ###
  40. day 21: ##########
  41. day 22: ######
  42. day 23: ####
  43. day 24: #################
  44. day 25: ####################
  45. day 26: ########################
  46. day 27: ###
  47.  
  48. Last connection: 3 pulses (0.66 zl)
  49. Sum:    332 pulses
  50. Price:  73.04 zl
  51. Daily:  2.71 zl
  52.  
  53. WARNING!!!
  54. There was 1 crash so the actual pulse count may be higher!
  55.  
  56. ---------------------------------------------------------------------
  57.  
  58. As you can see, it calculates the cost in "zlotys" using current rates for
  59. telephone connection in Poland.  Modifying it to support other
  60. rates/countries is trivial and is left as an exercise for the reader. 
  61.  
  62. And BTW - MiamiLog only understands logfiles containing entries from ONE
  63. month. Yes, I know, but remember - I am not charging money for this stuff. :)
  64.  
  65. Have fun,
  66. Milek
  67.  
  68.  
  69. ============================= Archive contents =============================
  70.  
  71. Original  Packed Ratio    Date     Time    Name
  72. -------- ------- ----- --------- --------  -------------
  73.     1188     552 53.5% 01-Mar-98 01:00:36  MiamiLog.info
  74.    22112   13037 41.0% 01-Mar-98 00:59:34 +MiamiLog
  75.     2727    1036 62.0% 01-Mar-98 00:57:36 +MiamiLog.l
  76.     1805     801 55.6% 01-Mar-98 00:56:44 +MiamiLog.readme
  77.       95      79 16.8% 01-Mar-98 00:59:20 +SCOPTIONS
  78. -------- ------- ----- --------- --------
  79.    27927   15505 44.4% 01-Mar-98 15:59:26   5 files
  80.